<template>
	<view>
		<uni-card :title="content.parkName">
			<view class="font-color">地址：{{content.address}}</view>
			<view class="font-color">距离：{{content.distance}}</view>
			<view class="font-color">是否对外开放：{{content.open == 'Y'?'是':'否'}}</view>
		</uni-card>
		<uni-card title="车位信息">
			<view class="">
				停车费{{content.rates}}元／小时，最高{{content.priceCaps}}元／天
			</view>
			<view class="">
				剩余车位：：{{content.vacancy}}
			</view>
		</uni-card>
	</view>
</template>

<script>
	import api from 'commer/apiURL.js'
	export default {
		data() {
			return {
				base:api.baseurl,
				content:''
			}
		},
		onLoad(options) {
			this.getlun(options.id)
		},
		methods: {
			getlun(id){
				this.$get(this.base+'/prod-api/api/park/lot/'+id).then((res)=>{
					this.content = res.data
				})
			}
		}
	}
</script>

<style>

</style>
